Java API for XML Processing (JAXP) allows you to use several different APIs to verify, parse, and convert XML. JAXP provides both ease of use and developer neutrality. This series introduces JAXP, which consists of two parts. This article is the
Java parses XML in two ways: Dom and sax. Although Dom is W3C standard and provides a standard parsing method, its parsing efficiency has been unsatisfactory because when using Dom to parse XML, the parser reads the entire document and constructs a
The previous article mentioned how to use Dom to parse and operate XML in Java. This article explains how to use SAX to parse and operate XML in Java, which is a little clear on the mobile platform, the XML-based event mechanism can save a lot of
Dom Parsing
In the DOM interface specification, there are four basic interfaces: Document, node, nodelist, and namednodemap. Among the four basic interfaces, the document interface is the entry for document operations, which is inherited from the
Xml| Programming Sax Concept
Sax is the abbreviation of simple API for XML, it is not the standard that is put forward by the official of the consortium, it can be said as the "folk" fact standard. In fact, it is a community-nature discussion
Sax features (SAX is short for SimpleAPIforXML) 1. high resolution efficiency, less memory occupied 2. resolution can be stopped at any time. 3. the entire document cannot be loaded into memory. 4. the xml file cannot be written to xml5.SAX for
Why do they exist at the same time?
What is Dom?
What is sax?
When to use dom
When to use SAX
Conclusion
Why do they exist at the same time?
--------------------------------------------------------------------------------
SAX (Simple API for XML)
-------------------------------------Sax Parsing XML----------------------------------"Sax definitionSax is a fast parsing and memory-intensive XML parser, ideal for mobile devices such as AndroidThe Sax full name is simple API for Xml, which refers
Dom parsing and sax parsing, dom parsing and sax ParsingThere are four ways to parse xml: DOM, SAX, DOM4j, and JDOM.We mainly learned two types: DOM and SAX.DOM is suitable for parsing relatively simple XML, while SAX is suitable for parsing more
Why do they exist at the same time?
--------------------------------------------------------------------------------
SAX (Simple API for XML) and Dom (Document Object Model) are designed to allow programmers to access their information without
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.